import Mock from 'mockjs'

let List = []
export default {
    getShopList: () => {
        return {
            code: 200,
            msg: 'success',
            data: [{
                    name: 'ES6',
                    price: Mock.Random.float(100, 1000, 0, 2),
                    unit: '课时',
                    date: Mock.mock('@time("yyyy-MM-dd")'),
                    count: 0
                },
                {
                    name: '小程序',
                    price: Mock.Random.float(100, 1000, 0, 2),
                    unit: '课时',
                    date: Mock.mock('@time("yyyy-MM-dd")'),
                    count: 0
                },
                {
                    name: 'Vue',
                    price: Mock.Random.float(100, 1000, 0, 2),
                    unit: '课时',
                    date: Mock.mock('@time("yyyy-MM-dd")'),
                    count: 0
                },
                {
                    name: 'springboot',
                    price: Mock.Random.float(100, 1000, 0, 2),
                    unit: '课时',
                    date: Mock.mock('@time("yyyy-MM-dd")'),
                    count: 0
                },
                {
                    name: 'React',
                    price: Mock.Random.float(100, 1000, 0, 2),
                    unit: '课时',
                    date: Mock.mock('@time("yyyy-MM-dd")'),
                    count: 0
                },
                {
                    name: 'Redis',
                    price: Mock.Random.float(100, 1000, 0, 2),
                    unit: '课时',
                    date: Mock.mock('@time("yyyy-MM-dd")'),
                    count: 0
                }
            ]
        }
    }
}